<?php include('view/template/common/header.tpl'); ?>
<?php if ($error_warning) { ?>
<div class="warning"><?php echo $error_warning; ?></div>
<?php } ?>
<div class="box">
  <div class="left"></div>
  <div class="right"></div>
  <div class="heading">
    <h1 style="background-image: url('./view/image/country.png');"><?php echo $heading_title; ?></h1>
    <div class="buttons"><a onclick="$('#form').submit();" class="button"><span><?php echo "Lưu Lại"; ?></span></a><a onclick="location = '<?php echo $link_list; ?>';" class="button"><span><?php echo "Hủy"; ?></span></a></div>
  </div>
  <div class="content">
    <form action="<?php echo $action; ?>" method="post" enctype="multipart/form-data" id="form">
      <table class="form">
       <tr><td><?php echo $t_tendisan; ?></td><td><input  type="text" name="title" /></td></tr>
       <tr><td><?php echo $t_diachi ?></td><td><input  type="text" name="alias"/></td></tr>
   	   <tr><td><?php echo $t_ynghialichsu; ?></td><td> 
       <textarea name = "content" id="ynghialichsu"> </textarea> 
       </td>
       </tr>
      </table>
    </form>
  </div><div class="bottom_button"><a onclick="$('#form').submit();" class="button"><span><?php echo "Lưu Lại"; ?></span></a><a onclick="location = '<?php echo $link_list; ?>';" class="button"><span><?php echo "Hủy"; ?></span></a></div>
</div>
<?php include('view/template/common/footer.tpl'); ?>

<script type="text/javascript">
	var editor = CKEDITOR.replace( 'ynghialichsu');
    var editor1 = CKEDITOR.replace( 'dinhkem',{	toolbar :
					[
						[ 'Bold', 'Italic', '-', 'NumberedList', 'BulletedList', '-', 'Link', 'Unlink' ],
					
					]});
   	CKFinder.setupCKEditor( editor, './view/javascript/ckfinder/' ) ;
   	CKFinder.setupCKEditor( editor1, './view/javascript/ckfinder/' ) ;
</script>